{extends file = "assets::smarty-templates::DetailsView"|ToPath}

{block name="title"}Buques / Ver{/block}

{block name="page-id"}buques-view-page{/block}

{block name="custom-actions"}
<li>
    <a href="#confirm-delete-buque" 
       id="delete-buque"
       data-icon="delete" 
       data-role="button"
       data-rel="dialog">
        Eliminar
    </a>
</li>
<li>
    <a href="{$editUrl}"
       data-role="button">
        Editar
    </a>
</li>
{/block}

{block name="entityDetails"}
<div data-role="tabsview">
    <div>
        <h3>Datos</h3>
        <div>
            <h3 id="nombre">{$buque->getNombre()}</h3>
            <p>
                <strong>N&uacute;mero IMO: </strong>
                {$buque->getImo()}
            </p>
            <p>
                <strong>Bandera: </strong> 
                {$buque->getPaises()->getNombre()}
            </p>
            <p>
                <strong>Linea: </strong> 
                [{$buque->getLineas()->getAbreviatura()}] {$buque->getLineas()->getNombre()}
            </p>
            <p>
                <strong>Email: </strong>
                {$buque->getEmail()}
            </p>
        </div>
    </div>
    <div>
        <h3>Caracter&iacute;sticas</h3>
        <div>
            <p>
                <strong>N&uacute;mero oficial: </strong> 
                {$buque->getNumeroOficial()}
            </p>
            <p>
                <strong>A&ntilde;o de Construcci&oacute;n: </strong>
                {$buque->getAnio()}
            </p>
            <p>
                <strong>Puerto de Matr&iacute;cula</strong>
                {$buque->getPuertoMatricula()}
            </p>
            <p>
                <strong>Material del Casco: </strong>
                {$buque->getMaterial()}
            </p>
        </div>
    </div>
    <div>
        <h3>Dimensiones</h3>
        <div>
            <p>
                <strong>Manga: </strong> 
                {$buque->getManga()}
            </p>
            <p>
                <strong>Loa: </strong>
                {$buque->getLoa()}
            </p>
            <p>
                <strong>Calado M&aacute;ximo: </strong>
                {$buque->getCaladoMax()}
            </p>
            <p>
                <strong>Velocidad M&aacute;xima: </strong>
                {$buque->getVelocidadMax()}
            </p>
        </div>
    </div>
    <div>
        <h3>Capacidad</h3>
        <p>
            <strong>Refers Socket: </strong>
            {$buque->getRefersSocket()}
        </p>
        <p>
            <strong>Gruas: </strong>
            {$buque->getGruas()}
        </p>
        <p>
            <strong>HOLD: </strong>
            {$buque->getHold()}
        </p>
        <p>
            <strong>Capit&aacute;n: </strong>
            {$buque->getCapitan()}
        </p>
        <p>
            <strong>TEUS: </strong>
            {$buque->getTeus()}
        </p>
        <p>
            <strong>FEUS: </strong>
            {$buque->getFeus()}
        </p>
        <p>
            <strong>Pasajeros: </strong>
            {$buque->getPasajeros()}
        </p>
        <p>
            <strong>Tripulaci&oacute;n: </strong>
            {$buque->getTripulacion()}
        </p>
    </div>        
    <div>
        <h3>Calado</h3>
        <div>
            <p>
                <strong>Gross Weight (t): </strong> 
                {$buque->getGrossWight()}
            </p>
            <p>
                <strong>Net Weight (t): </strong>
                {$buque->getNetWeight()}
            </p>
            <p>
                <strong>Dead Weight (t): </strong>
                {$buque->getDeadWeight()}
            </p>
        </div>
    </div> 
    <div>
        <h3>Armadores</h3>
        <div>
            <p>
                <strong>Armador: </strong> 
                {$buque->getArmador()}
            </p>
            <p>
                <strong>Fleteador: </strong>
                {$buque->getFleteador()}
            </p>
            <p>
                <strong>P & I Club: </strong>
                {$buque->getPiClub()}
            </p>
        </div>
    </div> 
</div>
{/block}

{block name="subpages"}
<div id="confirm-delete-buque" data-role="subpage" class="common-dialog">
    <div data-role="header">
        <h3>Borrar buque</h3>
    </div>
    <div data-role="content">
        <div>
            <p>
                Borrando <strong id="confirm-delete-buque-nombre"></strong>
            </p>
            <p>
                ¿Seguro que desea eliminar este buque?
            </p>
        </div>
        <div>
            <a href="#" 
               data-role="button" 
               data-rel="back" 
               id="confirm-cancel-button"
               data-inline="true">Cancelar</a>
            <a data-role="button"
               id="confirm-delete-buque-accept"
               data-icon="check" 
               href="{$deleteUrl}"
               data-theme="b"
               data-inline="true">Eliminar</a>
        </div>
    </div>
</div>
{/block}